package com.daqsoft.dao.project;

import com.daqsoft.data.User;
import com.daqsoft.data.project.Project;
import com.daqsoft.data.project.ProjectUser;
import com.daqsoft.dto.StatusEnum;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 参与项目的用户数据层
 * @author 周麟东 on 14:51
 */
public interface ProjectUserDao extends JpaRepository<ProjectUser,Integer> {

    ProjectUser getFirstByProjectAndUser(Project project , User user);

    void deleteByProject(Project project);

    List<ProjectUser> findByProject(Project project);

}
